<?php
namespace jy_newczfee;
defined('BY_JYA') or exit('error');
/*
	消息提醒
*/
class notice extends \plugin{
	public function notice_apply($apply=array(),$isexi=false){
		//大客户审核
		$template_id=cfc('account')->get_tpl_template_id('63144','店铺入驻申请审核通知',$isexi,array('联系人','联系电话','时间'),'apply','jy_newczfee');
		$apply['realname']=cfc('tools')->substr($apply['realname'],0,10);
		$message=array(
			array('value'=>$apply['realname'],"name" => "thing3"),
			array('value'=>$apply['mobile']?:'*** ***',"name" => "phone_number4"),
			array('value'=>date('Y/m/d H:i:s',$apply['createtime']),"name" => "time1"),
		);
		if(!$url){
			$url=custom_url('jy_newczfee/index/',true);	
		}
		if($this->setting['admin_ids']){
			foreach($this->setting['admin_ids'] as $mv){
				if($mv['mid']){
					cfc('account')->sendtwoNotice($mv['mid'],$template_id,$message,$url,'apply','jy_newczfee',$apply['id'],$isexi);
				}
			}
		}
		return '';
	}
}
